package com.example.service;

import com.example.dao.FollowDao;
import com.example.dao.impl.FollowDaoImpl;
import com.example.entity.customerAdmin.Follow;
import com.example.utils.ResultData;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.List;
@Data
@Service
public class FollowService {
    FollowDao followDao=new FollowDaoImpl ();
    public int  addFollow(Follow follow){
       return followDao.add (follow);
    }
    public List<Follow> selectAll(){
       return followDao.selectAll ();
    }
    public int del(int id){
        return followDao.del (id);
    }
    public Follow selectById(int id){
       return followDao.selectById (id);
    }
}
